package com.zhdl.modules.prefiresys.web.controller;

import com.zhdl.common.util.WebResult;
import com.zhdl.modules.prefiresys.web.service.ResetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务接口
 */
@RestController
@RequestMapping("/api/v1/reset")
public class ResetController {

    @Autowired
    private ResetService resetService;

    /**
     * 首页数据请求
     */
    @GetMapping(value = "/rec")
    public WebResult resetRec() {

        resetService.deleteRec();

        return WebResult.okResult();
    }

}
